Skip to content

8319192: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url) #23909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

prrace
Copy link
Contributor

@prrace prrace commented Mar 4, 2025

Back in JDK 21 we deprecated-for-removal SynthLookAndFeel.load(URL) and targeted it to be removed under this bug ID in JDK 25 .. which is now here.

No open tests needed to be updated to accommodate this removal
I did find one closed manual test, written to explicitly test this API back when it was added, and I'll need to remove that, but it doesn't affect this PR.

There will be a CSR (and probably a release note too).


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires CSR request JDK-8351238 to be approved

Issues

  • JDK-8319192: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url) (Bug - P4)
  • JDK-8351238: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url) (CSR)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23909/head:pull/23909
$ git checkout pull/23909

Update a local copy of the PR:
$ git checkout pull/23909
$ git pull https://git.openjdk.org/jdk.git pull/23909/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 23909

View PR using the GUI difftool:
$ git pr show -t 23909

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23909.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 4, 2025

👋 Welcome back prr! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Mar 4, 2025

@prrace This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8319192: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url)

Reviewed-by: azvegint, tr

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 105 new commits pushed to the master branch:

  • a7ad414: 8351327: -XX:AOTMode=record interferes with application execution
  • 41cc049: 8350840: C2: x64 Assembler::vpcmpeqq assert: failed: XMM register should be 0-15
  • a347ecd: 8350905: Shenandoah: Releasing a WeakHandle's referent may extend its lifetime
  • 5502ce7: 8351699: Problem list com/sun/jdi/JdbStopInNotificationThreadTest.java with ZGC
  • cdf7632: 8351444: Shenandoah: Class Unloading may encounter recycled oops
  • 930455b: 8351640: Print reason for making method not entrant
  • 895f64a: 8351142: Add JFR monitor deflation and statistics events
  • db531bf: 8351881: Tidy complains about missing "alt" attribute
  • 02c850f: 8350982: -server|-client causes fatal exception on static JDK
  • 2371696: 8303770: Remove Baltimore root certificate expiring in May 2025
  • ... and 95 more: https://git.openjdk.org/jdk/compare/55987925fd8ba5d7782934194141fe425a9041be...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title 8319192 8319192: Mar 4, 2025
@openjdk
Copy link

openjdk bot commented Mar 4, 2025

@prrace The following label will be automatically applied to this pull request:

  • client

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@prrace
Copy link
Contributor Author

prrace commented Mar 4, 2025

/csr

@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label Mar 4, 2025
@openjdk
Copy link

openjdk bot commented Mar 4, 2025

@prrace has indicated that a compatibility and specification (CSR) request is needed for this pull request.

@prrace this pull request must refer to an issue in JBS to be able to link it to a CSR request. To refer this pull request to an issue in JBS, please update the title of this pull request to just the issue ID.

@prrace prrace changed the title 8319192: 8319192 Mar 4, 2025
@openjdk openjdk bot changed the title 8319192 8319192: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url) Mar 4, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Mar 4, 2025
@mlbridge
Copy link

mlbridge bot commented Mar 4, 2025

Webrevs

@azvegint
Copy link
Member

azvegint commented Mar 5, 2025

It is also mentioned in

<a href="../../../../../javax/swing/plaf/synth/SynthLookAndFeel.html#load(java.net.URL)">
SynthLookAndFeel.load(URL)</a> methods.

@prrace
Copy link
Contributor Author

prrace commented Mar 5, 2025

It is also mentioned in

<a href="../../../../../javax/swing/plaf/synth/SynthLookAndFeel.html#load(java.net.URL)">
SynthLookAndFeel.load(URL)</a> methods.

Ah. I'd forgotten that. I had updated it back in JDK 21 but it slipped my mind this time round.

I'll remove the relevant text.
Hmm, is that specific text part of the spec needed for the CSR ? I didn't include it in the JDK 21 case, and it seems to be just examples, so I am going to say no.

@prrace
Copy link
Contributor Author

prrace commented Mar 5, 2025

It is also mentioned in

<a href="../../../../../javax/swing/plaf/synth/SynthLookAndFeel.html#load(java.net.URL)">
SynthLookAndFeel.load(URL)</a> methods.

Ah. I'd forgotten that. I had updated it back in JDK 21 but it slipped my mind this time round.

fixed

@@ -34,7 +34,6 @@
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is URLClassLoader no longer used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems so. I'll remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLCLassLoader still not removed it seems..I dont see its usage in the file..

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed csr Pull request needs approved CSR before integration labels Mar 7, 2025
Copy link
Contributor

@TejeshR13 TejeshR13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just have to update copyright year.

@prrace
Copy link
Contributor Author

prrace commented Mar 13, 2025

/integrate

@openjdk
Copy link

openjdk bot commented Mar 13, 2025

Going to push as commit aa047ee.
Since your change was applied there have been 124 commits pushed to the master branch:

  • cd1be91: 8319055: JCMD should not buffer the whole output of commands
  • 248c373: 8351266: JFR: -XX:StartFlightRecording:report-on-exit
  • 03ef79c: 8346470: Improve WriteBarrier JMH to have old-to-young refs
  • b50fe9b: 8280818: Expand bug8033699.java to iterate over all LaFs
  • 771e160: 8351323: Parameterize compiler and linker flags for iconv
  • 0ff1c08: 8349984: (jdeps) jdeps can use String.repeat instead of String.replaceAll
  • 37ec796: 8351500: G1: NUMA migrations cause crashes in region allocation
  • 4e51a8c: 8307513: C2: intrinsify Math.max(long,long) and Math.min(long,long)
  • 7e3bc81: 8351216: ZGC: Store NUMA node count
  • 82eb780: 8351349: GSSUtil.createSubject has outdated access control context and policy related text
  • ... and 114 more: https://git.openjdk.org/jdk/compare/55987925fd8ba5d7782934194141fe425a9041be...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Mar 13, 2025
@openjdk openjdk bot closed this Mar 13, 2025
@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Mar 13, 2025
@openjdk openjdk bot removed the rfr Pull request is ready for review label Mar 13, 2025
@openjdk
Copy link

openjdk bot commented Mar 13, 2025

@prrace Pushed as commit aa047ee.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client [email protected] integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

5 participants